package com.ylbh.modules.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylbh.common.pojo.coupon.dto.*;
import com.ylbh.common.pojo.coupon.vo.CouponDetailsVO;
import com.ylbh.common.utils.PageUtils;
import com.ylbh.modules.business.entity.ShoppingBusinessGoods;

/**
 * 优惠券
 * @author czx
 * @date 2019-05-10
 */
public interface CouponService extends IService<ShoppingBusinessGoods> {

    /**
     * 优惠券使用记录
     * @param usageRecordDTO
     * @return
     */
    PageUtils queryUsageRecordList(UsageRecordDTO usageRecordDTO);

    /**
     * 超级大玩家开通记录
     * @param openingRecordDTO
     * @return
     */
    PageUtils queryOpeningRecordList(OpeningRecordDTO openingRecordDTO);

    /**
     * 优惠券领取记录
     * @param collectionRecordsDTO
     * @return
     */
    PageUtils queryCollectionRecordsList(CollectionRecordsDTO collectionRecordsDTO);

    /**
     * 优惠券信息列表
     * @param couponListDTO
     * @return
     */
    PageUtils queryCouponList(CouponListDTO couponListDTO);

    /**
     * 优惠券的详情
     * @param goodsId
     * @return
     */
    CouponDetailsVO queryCouponDetailsById(Long goodsId);

    /**
     * 优惠券商品上下架
     * @param goodsId
     * @param isSale
     */
    void modifyUpperAndLowerFrames(String goodsId, String isSale);

    /**
     * 优惠券商品审核
     * @param couponPassDTO
     */
    void modifyAdoptById(CouponPassDTO couponPassDTO);
}
